/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Servlet;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class Connect {
    public Connection con = null;
    public ResultSet rst = null;
    public int rstUpdate;
    public Statement stmt = null;
    public Connect() throws Exception
   {
    
                System.out.println("oke");
        String url = "jdbc:mysql://localhost/progin_171_13509047?user=progin&password=progin";
                System.out.println("oke");
        con = DriverManager.getConnection(url);
        System.out.println("oke");
        System.out.println("yeah");
        stmt = con.createStatement();
        
   }
}
